package com.pinapel.aixml.ui;

import java.awt.Color;

import javax.swing.JTabbedPane;

import com.pinapel.aixml.controller.TabbedLogController;
import com.pinapel.aixml.tools.i18n.I18n;

public class TabbedLogUI extends JTabbedPane{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6034980068755651197L;
	
	private LogUI mLogUI;
	private LogInfoVerboseUI mVerbose;
	private TabbedLogController mController;
	
	public TabbedLogUI(){
		this.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(Color.TRANSLUCENT)));
		
		mLogUI = new LogUI();
		mVerbose = new LogInfoVerboseUI();
		
		this.addTab(I18n.getString(I18n.UI006_LOG), mLogUI);
		this.addTab(I18n.getString(I18n.UI006_LOG_EXTENDED), mVerbose);	
	}
	
	public TabbedLogController getController(){
		return mController;
	}
	
	public void setController(TabbedLogController controller){
		mController = controller;
	}
	
	public LogUI getLogUI(){
		return mLogUI;
	}

	public LogInfoVerboseUI getInfoVerboseUI(){
		return mVerbose;
	}
}
